package com.ynu.appuser.domain.physical;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

public class BloodOxygen implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;

    private String deviceType;

    private String username;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date timeBegin;

    private Integer bloodoxygen;

    private Integer bloodoxygenH;

    private Integer bloodoxygenL;

    private Date createTime;

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(String deviceType) {
        this.deviceType = deviceType;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Date getTimeBegin() {
        return timeBegin;
    }

    public void setTimeBegin(Date timeBegin) {
        this.timeBegin = timeBegin;
    }

    public Integer getBloodoxygen() {
        return bloodoxygen;
    }

    public void setBloodoxygen(Integer bloodoxygen) {
        this.bloodoxygen = bloodoxygen;
    }

    public Integer getBloodoxygenH() {
        return bloodoxygenH;
    }

    public void setBloodoxygenH(Integer bloodoxygenH) {
        this.bloodoxygenH = bloodoxygenH;
    }

    public Integer getBloodoxygenL() {
        return bloodoxygenL;
    }

    public void setBloodoxygenL(Integer bloodoxygenL) {
        this.bloodoxygenL = bloodoxygenL;
    }

    @Override
    public String toString() {
        return "BloodOxygen{" +
                "id=" + id +
                ", deviceType='" + deviceType + '\'' +
                ", username='" + username + '\'' +
                ", timeBegin=" + timeBegin +
                ", bloodoxygen=" + bloodoxygen +
                ", bloodoxygenH=" + bloodoxygenH +
                ", bloodoxygenL=" + bloodoxygenL +
                '}';
    }
}
